package abstract1;

public class ShapeTester {
    public static void main(String[] args) {
        Shape[] p=new Shape[]{
                new Point(),
                new HorzLine(9),
                new VertLine(6),
                new Rectangle(5,4)

        };
        for (int i = 0; i < p.length; i++) {
            p[i].print();

//            System.out.println(p[i].toString());
//            System.out.println();
        }
    }
}
